home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 6 (Reseller Edition)
/
Apple Ref. & Pres. Lib.v6.0.toast
/
pc
/
3-Presentations
/
Apple Demos
/
Training
/
HyperCard 2.0 Training
/
•HC 2.0-2
/
card_27261.txt
< prev
next >
Wrap
Text File
|
1990-08-07
|
7KB
|
350 lines
-- card: 27261 from stack: in.0-2
-- bmap block id: 27653
-- flags: 0000
-- background id: 27044
-- name: productivity
----- HyperTalk script -----
-- This handler initiates the animation.
on doAnimation
set cursor to none
wait 30
global gwhichButton
doHammer
repeat with n = 1 to 8
zoomRect the rect of btn ("mask" & n & "a"), the rect of btn ("mask" & n & "b")
show btn ("mask" & n & "a")
hide btn ("mask" & n & "b")
put n into gwhichButton
hammerIt
end repeat
wait 30
hide btn "OddMask"
show cd btn "See It Again"
end doAnimation
on closeCard
reset
end closeCard
-- This handler resets the animation.
on reset
lock screen
resetHammer
repeat with n = 1 to 8
hide btn ("mask" & n & "a")
show btn ("mask" & n & "b")
end repeat
show btn "OddMask"
hide cd btn "See It Again"
end reset
-- This handler performs the animation.
on PAnimate
end PAnimate
----------------------------
-- These are mini animations used by PAnimate.
on hammerIt
global gwhichButton
set the icon of btn "hammer1" to "hammerIcon"
set the loc of btn "hammer1" to the loc of btn ("mask" & gwhichButton & "b")
doHammer
resetHammer
end hammerIt
on resetHammer
set the loc of btn "hammer1" to 89,140
set the icon of btn "hammer1" to "hammerDownIcon"
end resetHammer
on doHammer
repeat for 2
set the icon of btn "hammer1" to "hammerIcon"
wait 5
set the icon of btn "hammer1" to "hammerDownIcon"
wait 5
end repeat
end doHammer
-- part 4 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=66 top=129 right=152 bottom=113
-- title width / last selected line: 0
-- icon id / first selected line: 5835 / 5835
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: hammer1
-- part 5 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=108 top=126 right=152 bottom=159
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask4a
-- part 6 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=60 top=149 right=172 bottom=158
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask2a
-- part 7 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=158 top=151 right=173 bottom=232
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask5a
-- part 8 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=158 top=128 right=153 bottom=254
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask1a
-- part 9 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=230 top=153 right=172 bottom=409
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask3a
-- part 10 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=253 top=127 right=153 bottom=315
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask6a
-- part 11 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=314 top=124 right=154 bottom=410
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask7a
-- part 12 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=141 top=109 right=128 bottom=350
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask8a
-- part 13 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=67 top=78 right=94 bottom=140
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask2b
-- part 14 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=140 top=79 right=93 bottom=184
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask4b
-- part 15 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=186 top=76 right=94 bottom=231
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask5b
-- part 16 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=232 top=80 right=94 bottom=288
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask1b
-- part 17 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=290 top=76 right=94 bottom=324
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask6b
-- part 18 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=325 top=75 right=94 bottom=410
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask7b
-- part 19 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=239 top=94 right=110 bottom=408
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask8b
-- part 20 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=67 top=94 right=110 bottom=236
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: mask3b
-- part 21 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=67 top=110 right=126 bottom=101
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ODDmask
-- part 23 (button)
-- low flags: 80
-- high flags: A004
-- rect: left=57 top=172 right=189 bottom=137
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 174
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: See It Again
----- HyperTalk script -----
-- This handler resets the animation and shows it again.
on mouseUp
set cursor to none
reset
unlock screen
doAnimation
end mouseUp
-- part contents for background part 1
----- text -----
HyperCard allows you to organize your life easily (& graphically, if you desire): datebooks, address books, etc.